package com.golf.core.course.bodies;

/**
 * An immutable Position in coordinate space.
 * 
 * @author gfloodgate
 */
public class Position 
{
	
	/** The x co-ordinate of this position. */
	private final float x;

	/** The y co-ordinate of this position. */
	private final float y;

	
	/**
	 * Create a position.
	 * 
	 * @param x The x-coordinate of this position.
	 * @param y The y-coordinate of this position.
	 */
	public Position(final float x, final float y)
	{
		this.x = x;
		this.y = y;
	}
	
	
	/**
	 *
	 * 
	 * @return
	 */
	public float getX()
	{
		return x;
	}
	
	/**
	 * 
	 * 
	 * @return
	 */
	public float getY()
	{
		return y;
	}
	
}
